OSLC Query to get requirements from a RequirementCollection

Hi,

I'm using DOORS NG (V5.0.2) and I'm trying to get requirements referenced by a RequirementCollection using OSLC.

I tried the query given on: 

https://jazz.net/library/article/1197

which is:

&oslc.prefix=rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns%23>,dcterms=<http://purl.org/dc/terms/>&oslc.select=*&oslc.where=rdf:type=<http://open-services.net/ns/rm%23Requirement>

But this query only returns the RequirementCollection itself.

 

So, is the query correct?

 


carloseg - Tue Jun 30 05:34:51 EDT 2015

Re: OSLC Query to get requirements from a RequirementCollection
SudarshanRao - Tue Jun 30 08:28:11 EDT 2015

Looking at the oslc.where part of the query (rm#Requirement, not rm#RequirementCollection), I would have expected the query to return all requirements, not requirement collections.
But if you are getting the requirement collection, you can query the link to requirement collection, to get the list of all requirements used in the collection - they will be represented as oslc_rm:uses nodes.

Hope that helps!

By the way, this forum is primarily for questions of DOORS, not DOORS NG. For questions on DOORS NG, you'll get better responses in this forum:
https://jazz.net/forum

Thanks,
Sudarshan

Re: OSLC Query to get requirements from a RequirementCollection
carloseg - Wed Jul 08 02:54:24 EDT 2015

Thanks Sudarshan,

 

In fact, the query is wrong, The correct one is:

 

&oslc.prefix=oslc_rm=<http:// open-services.net/ns/rm%23>, dcterms=<http://purl.org/dc/ terms/>&oslc.select=oslc_rm: uses&oslc.where=dcterms: identifier=1
Once I execute this query, I get the RequirementCollection corresponding to the identifier.
 
I posted it on Jazz forum and I had an answer
 
Thanks for your help!!!!